package com.kejy.service.impl;

import com.kejy.entity.AuctionRecord;
import com.kejy.mapper.AuctionRecordMapper;
import com.kejy.util.MyBatisUtil;

public class AuctionRecordMapperImpl implements AuctionRecordMapper {
    private AuctionRecordMapper auctionRecordMapper = MyBatisUtil.createSqlSession()
            .getMapper(AuctionRecordMapper.class);

    @Override
    public int addRecord(AuctionRecord auctionRecord) {
        return auctionRecordMapper.addRecord(auctionRecord);
    }

    @Override
    public AuctionRecord selectById(Integer id) {
        return auctionRecordMapper.selectById(id);
    }
}
